package S06;
public class Student extends Person {
	private String school;
	public Student(String id, String name, String tel, String school) {
		super(id, name, tel);
		this.school = school;
	}
	public String getSchool() {
		return school;
	}
	public void setSchool(String school) {
		this.school = school;
	}
	@Override
	public String toString() {//父类Person的toString不能完整表达学生对象，所以这里需要重写方法
		return super.toString()+ "，就读于" + school;
	}
}
